const friendController = require("../controllers/friendController");
const route = require('express').Router()

route.post('/sendFriendRequest', friendController.sendFriendRequest)
route.get('/getFriendRequest', friendController.getFriendRequest)
route.get('/getFriendList/:userId', friendController.getFriends)
route.get('/getFriendsId', friendController.getFriendsId)
route.get('/checkRelationship', friendController.checkRelationship)
route.post('/acceptFriendRequest', friendController.acceptFriendRequest)
route.post('/ignoreFriendRequest', friendController.ignoreFriendRequest)
route.get('/checkFriendReqStatus', friendController.checkFriendReqStatus)
route.get("/checkIfHasFriendRequest", friendController.checkIfHasFriendRequest)

module.exports = route